package com.kmu.lwl.entiy;

import java.util.Objects;

public class Major {
    private int majorId;
    private String majorName;
    private Integer majorNumber;
    private String majorCounselor;

    public int getMajorId() {
        return majorId;
    }

    public void setMajorId(int majorId) {
        this.majorId = majorId;
    }

    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    public Integer getMajorNumber() {
        return majorNumber;
    }

    public void setMajorNumber(Integer majorNumber) {
        this.majorNumber = majorNumber;
    }

    public String getMajorCounselor() {
        return majorCounselor;
    }

    public void setMajorCounselor(String majorCounselor) {
        this.majorCounselor = majorCounselor;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Major major = (Major) o;
        return majorId == major.majorId &&
                Objects.equals(majorName, major.majorName) &&
                Objects.equals(majorNumber, major.majorNumber) &&
                Objects.equals(majorCounselor, major.majorCounselor);
    }

    @Override
    public int hashCode() {
        return Objects.hash(majorId, majorName, majorNumber, majorCounselor);
    }
}
